/**
 * JAVACC DEMO 1.0
 */
package com.apache.uct.common;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

/**
 * description:  菜单控制自定义标签
 *
 */
@SuppressWarnings("serial")
public class UctTag extends TagSupport {

    private String actFullEname;

    public int doStartTag() throws JspException {
        LoginUser loginUser = (LoginUser) this.pageContext.getSession().getAttribute("loginUser");
        boolean b = false;
        if (null != loginUser) {
            b = AuthUtil.openStrictLock(actFullEname, loginUser);
        }
        if (b) {
            return super.EVAL_BODY_INCLUDE;
        } else {
            return super.SKIP_BODY;
        }

    }

    public int doEndTag() throws JspException {

        return super.EVAL_PAGE;
    }

    public String getActFullEname() {
        return actFullEname;
    }

    public void setActFullEname(String actFullEname) {
        this.actFullEname = actFullEname;
    }
}
